import React from 'react'
import { BrowserRouter as Router, Route, Redirect} from 'react-router-dom'

import Home from './pages/home/index'
import Citylist from './pages/citylist/index'
import Map from './pages/map/index'

import './App.css'

export default class App extends React.Component {
  render() {
    return (
      <Router>
        <div className="App">
          <Route exact path="/" render={()=><Redirect to="/home" />}/>
          <Route path="/home" component={Home} />
          <Route path="/citylist" component={Citylist} />
          <Route path="/map" component={Map} />
        </div>
      </Router>
    )
  }
}
